<?php

/*
 * 注意控制器要小写，例如（common里面的模型base）
 * --------------------------------
 * 		****权限添加****
 * 1.首先在写入对应的模块、控制器和方法
 * 2.在数据库的crm_permission里添加对应的注释(permission是由模块名+_+方法名构成)
 * 3.进入crm系统的权限组管理，添加对应的权限
 * --------------------------------
 */

return [
    'common' => [
        "name" => "基础模块",
        "data" => [
            "base" => [
                "name" => "crm系统基本功能",
                "data" => [
                    "upload_image" => "上传图片"
                    , "show_all_data" => "完整显示"
                ]
            ]
        ]

    ],
    'consultant_module' => [
        "name" => "咨询部模块",
        "data" => [
            "index" => [
                "name" => "咨询者基本功能",
                "data" => [
                    "show_list" => "显示信息"
                    , "get_consultant_info" => "获取信息"
                    , "show_add_edit" => "修改信息"
                    , "check_info" => "检查重复"
                    , "commit_add_edit" => "提交信息"
                    , "show_record" => "显示记录"
                    , "confirm_record" => "添加记录"
                ]
            ],
            "message" => [
                "name" => "消息提醒基本功能",
                "data" => [
                    "add_message" => "添加消息"
                    , "get_message" => "获取消息"
                    , "change_message_status" => "改变消息"
                ]
            ]
        ]
    ],
    'home' => [
        "name" => "首页模块",
        "data" => [
            "index" => [
                "name" => "首页基本功能",
                "data" => [
                    "index" => "展示首页"
                    , "show_home_data" => "获取数据"
                ]
            ]
        ]
    ],
    'public_module' => [
        "name" => "公共模块",
        "data" => [
            "index" => [
                "name" => "职员基本功能",
                "data" => [
                    "show_list" => "显示信息"
                    , "get_staff_info" => "获取信息"
                    , "show_add_edit" => "修改信息"
                    , "check_info" => "检查重复"
                    , "commit_add_edit" => "提交信息"
                    , "delete" => "删除信息"
                    , "confirm_delete" => "确认删除信息"
                    , "show_restore" => "显示恢复"
                    , "confirm_restore" => "确认恢复"
                ]
            ],
            "department" => [
                "name" => "部门及职位管理",
                "data" => [
                    "department_show_list" => "显示部门"
                    , "department_delete" => "删除部门"
                ]
            ],
            "permissionsgroup" => [
                "name" => "权限组管理",
                "data" => [
                    "show_permission" => "显示权限"
                    , "get_permission" => "获取权限"
                    , "get_now_permission" => "获取当前权限"
                    , "add_permissiongroup_name" => "添加新组"
                    , "update_permission" => "更新权限"
                    , "delete_permission" => "删除权限"
                    , "restore_permission" => "恢复权限"
                    , "confirm_restore" => "确认恢复"
                ]
            ],
            "rule" => [
                "name" => "行政制度管理",
                "data" => [
                    "show_rule" => "显示制度"
                    , "add_rule" => "添加制度"
                    , "confirm_rule" => "确认添加"
                    , "change_rule" => "修改制度"
                    , "delete_rule" => "删除制度"
                ]
            ]
        ]
    ],
    'administration_module' => [
        "name" => "行政部模块",
        "data" => [
            "index" => [
                "name" => "学生基本功能",
                "data" => [
                    "show_list" => "显示信息"
                    , "get_stu_info" => "获取信息"
                    , "study_record" => "学习记录"
                    , "show_add" => "显示增加"
                    , "show_edit" => "显示修改"
                    , "commit_add_edit" => "确认修改"
                    , "delete" => "显示删除"
                    , "confirm_delete" => "确认删除"
                    , "show_restore" => "显示恢复"
                    , "confirm_restore" => "确认恢复"
                ]
            ]
        ]
    ]
];
